/*
 * @Description: 这是路由页面
 * @Date: 2025-09-26 09:44:59
 * @Author: merrychen
 * @LastEditTime: 2025-09-26 11:08:29
 */
import { createRouter, createWebHistory } from 'vue-router'

import Home from '../views/home/Home.vue';
import AIChat from '../views/home/AIChat.vue';

const routes = [
  {
    path: '/',
    name: 'home',
    alias: ['/home'],   // 别名，可以定义很多个
    component: Home
  },
  {
    path: '/AIChat',
    name: 'aiChat',
    component: AIChat
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
